/* 全局样式 */
body {
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0,0,0,0.5);
}

.title-container {
    display: flex;
    align-items: center;
}

.main-title {
    font-size: 22px;
    font-weight: bold;
    margin-right: 30px;
    color: #00f4ff;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0,244,255,0.4);
    position: relative;
}

.indicators {
    display: flex;
    gap: 30px;
}

.indicator {
    padding: 8px 20px;
    /*background: rgba(0,0,0,0.5);*/
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset 0 0 10px rgba(0,180,255,0.1);
}

.indicator-label {
    font-size: 14px;
    color: #7fc5f3;
    margin-bottom: 4px;
}

.indicator-value {
    font-size: 18px;
    font-weight: bold;
    color: #00f4ff;
}

.switch-buttons {
    display: flex;
    gap: 10px;
}

.switch-btn {
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s;
}

.switch-btn.active {
    background: #007BFF;
}

/* 仪表盘布局 */
.dashboard {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 70px);
    padding: 10px;
    gap: 10px;
}

.main-content {
    display: flex;
    flex: 1;
    gap: 10px;
}

.side-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 25%;
}

.center-panel {
    width: 50%;
}

.chart-container {
    background: #dbf1fd;
    padding: 4px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-container:hover {
    transform: scale(1.05);
    background: #dbf1fd;
}

.bottom-charts {
    display: flex;
    height: 20%;
    gap: 10px;
}

.bottom-chart {
    flex: 1;
}

/* 放大功能 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: rgba(0,0,0,0.5);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    width: 80%;
    height: 80%;
    transform: scale(1); /* 控制放大动画 */
    transition: transform 0.5s ease;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: rgba(0,0,0,0.5);
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
